<?php
/**
 * Created by PhpStorm.
 * User: flutesing
 * Date: 15/7/30
 * Time: 下午5:26
 */

namespace Api\Model;


use Think\Model;

class QuestionModel extends Model{
    //put your code here
    protected $_validate = array(
        array('uid','require','用户ID必须！', self::MUST_VALIDATE),
        array('inituid','require','问题发起用户id必须！', self::MUST_VALIDATE),
        array('content','require','问题描述或回复必须！', self::MUST_VALIDATE)
    );

    protected $_auto = array(
        array('add_time', 'time', self::MODEL_INSERT, 'function')
    );
}